package com.ruoyi.mymod.controller.pec;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mymod.service.ICheEntryService;
import com.ruoyi.mymod.service.IPecProgramService;
import com.ruoyi.mymod.utils.ProgExecContr;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 测试功能
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/pec")
public class PecProgramController extends BaseController
{

    @Autowired
    private IPecProgramService pecProgramService;
    /**
     * 获取菜单列表
     */
    @GetMapping("/doProgram")
    public AjaxResult doProgram() throws Exception {
        ProgExecContr progExecContr = new ProgExecContr() {
            @Override
            public String afterProcess() {
                return null;
            }
        };
        String process = progExecContr.Process("11");
        return success(process);
    }



}
